package com.springboot.cloud.authorization.service;

import com.springboot.cloud.core.model.SystemUser;
import org.springframework.cache.annotation.Cacheable;

/**
 * <p>  </p>
 *
 * @author Bertram
 * @since 11/4/2019 4:40 PM
 */
public interface UserService {

    /**
     * 根据用户唯一标识获取用户信息
     *
     * @param uniqueId
     * @return
     */
    @Cacheable(value = "#id")
    SystemUser getByUniqueId(String uniqueId);
}
